<?php 
/** @name : result1.php via KOOK-FRAMEWORK - @author : theerasak.p - @since : 3 �.�. 2554 17:08:48 - @encoding : UTF-8 */
$subDirectory = str_replace($_SERVER['DOCUMENT_ROOT'],"",str_replace("\\","/",str_replace("\\api\\results","",getcwd())));
?>
<html>
	<head>
		<?php require '../resultPrototype.php';?>
	</head>
	<body>
		<div id="result">
			<b>การตั้งค่าเริ่มต้นก่อนใช้งาน</b>
			<ul>
				<li>ตั้งค่าไฟล์ config.inc.php</li>
				<pre name="code" class="c-sharp">
					# Database Configuration Section
					public static	$dbConnect		=	false;
					public static	$dbHost 		= 	"localhost";
					public static	$dbUser			= 	"";
					public static	$dbPass			= 	"";
					public static	$dbName			=	"";
				
					# Application Variables Configuration Section
					public static 	$Host			=	"<?php echo "http://".$_SERVER['HTTP_HOST'].(($subDirectory!="/" && $subDirectory!="")?$subDirectory:"");?>";
					public static 	$Path			=	"<?php echo $_SERVER['DOCUMENT_ROOT'].(($subDirectory!="/" && $subDirectory!="")?$subDirectory:"");?>";
					public static	$template		=	"default";
					public static 	$install 		= 	true;
				</pre>
				<li>หรือเข้าไปแก้ไขอัตโนมัติโดยคลิ๊ก <a href="../../install" target="_blank">ที่นี่</a></li>
			</ul>
		</div>
	</body>
</html>
